home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-04d.zip / 04d / CHIP / Porady / Niewidoczny w sieci / TOR 0.1.2.7 / vidalia-bundle-0.1.2.7-alpha-0.0.10.exe / Privoxy / templates / toggle < prev    next >
Text File  |  2006-11-04  |  7KB  |  186 lines

  1. ##########################################################
  2. #
  3. # Toggle Output template for Privoxy.
  4. #
  5. #
  6. # USING HTML TEMPLATES:
  7. # ---------------------
  8. #
  9. # Template files are written win plain HTML, with a few
  10. # additions:
  11. # - Lines that start with a '#' character like this one
  12. #   are ignored
  13. #
  14. # - Each item in the below list of exported symbols will
  15. #   be replaced by dynamically generated text, if they
  16. #   are enclosed in '@'-characters. E.g. The string @version@
  17. #   will be replaced by the version number of Privoxy.
  18. #
  19. # - One special application of this is to make whole blocks
  20. #   of the HTML template disappear if the condition <name>
  21. #   is not given. Simply enclose the block between the two
  22. #   strings @if-<name>start and if-<name>-end@. The strings
  23. #   should be placed in HTML comments (<!-- -->), so the
  24. #   html structure won't be messed when the magic happens.
  25. #   
  26. # USABLE SYMBOLS IN THIS TEMPLATE:
  27. # --------------------------------
  28. #
  29. #  my-ip-addr:
  30. #    The IP-address that the client used to reach this proxy
  31. #  my-hostname:
  32. #    The hostname associated with my-ip-addr
  33. #  admin-address:
  34. #    The email address of the pxoxy's administrator, as configured
  35. #    in the config file
  36. #  default-cgi:
  37. #    The URL for the "main menu" builtin CGI of this proxy
  38. #  menu:
  39. #    List of <li> elements linking to the other available CGIs
  40. #  version:
  41. #    The version number of the proxy software
  42. #  code-status:
  43. #    The development status of the proxy software: "alpha", "beta",
  44. #    or "stable".
  45. #  homepage:
  46. #    The URL of the SourceForge ijbswa project, who maintains this
  47. #    software.
  48. #
  49. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  50. # ------------------------------------------------------------------
  51. #
  52. #  unstable:
  53. #    this is an alpha or beta release of the proxy software
  54. #  have-adminaddr-info:
  55. #    An e-mail address for the local Privoxy adminstrator has
  56. #    been specified and is available through the "admin-address"
  57. #    symbol
  58. #  have-proxy-info:
  59. #    A URL for online documentation about this proxy has been
  60. #    specified and is available through the "proxy-info-url"
  61. #    symbol
  62. #  have-help-info:
  63. #    If either have-proxy-info is true or have-adminaddr-info is
  64. #    true, have-help-info is true.  Used to conditionally include
  65. #    a grey box for any and all help info.
  66. #  @if-enabled-display-then@ on @else-not-enabled-display@ off @endif-enabled-display@
  67. #
  68. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  69. <html>
  70.  
  71. <head>
  72.   <title>@if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@ - Privoxy@@my-hostname@</title>
  73.   <meta http-equiv="Content-Style-Type" content="text/css">
  74.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  75.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  76.   <meta name="robots" content="noindex,nofollow">
  77.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  78. </head>
  79.  
  80. <body>
  81.  
  82.   <table cellpadding="20" cellspacing="10" border="0" width="100%">
  83.     <tr>
  84.       <td class="title">
  85.  
  86. #include mod-title
  87.  
  88.       </td>
  89.     </tr>
  90.  
  91. <!-- @if-unstable-start -->
  92. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
  93.     <tr>
  94.       <td class="warning">
  95.  
  96. #include mod-unstable-warning
  97.  
  98.       </td>
  99.     </tr>
  100. <!-- if-unstable-end@ -->
  101.  
  102.     <tr>
  103.       <td class="box">
  104.         <h2>Privoxy is @if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@</h2>
  105.           <p>When enabled, Privoxy performs its magic - blocking
  106.             adverts, filtering cookies, regex-filtering, etc.</p>
  107.           <p>When disabled, Privoxy behaves as a normal HTTP proxy,
  108.             and will not affect your web browsing.</p>
  109.           <p><a href="@default-cgi@toggle?set=@if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@">Click
  110.             here</a> to @if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@ Privoxy.</p>
  111.       </td>
  112.     </tr>
  113.  
  114.     <tr>
  115.       <td class="box">
  116.         <h2>Bookmarklets</h2>
  117.           <p>Here are some bookmarklets to allow you to easily access a
  118.             "mini" version of this page.  They are known to work with MS 
  119.             Internet Explorer, Netscape and Mozilla, but should work equally
  120.             well in other browsers which support JavaScript.  They are designed
  121.             to run directly from your bookmarks - <b>not</b> by clicking the
  122.             links below (although that will work for testing).
  123.           </p>
  124.           <p>To save them, right-click the link and choose
  125.             "Add to Favorites" (IE) or "Add Bookmark" (Netscape).  You
  126.             will get a warning that the bookmark "may not be safe" - just
  127.             click OK.  Then you can run the Bookmarklet directly from your
  128.             favourites/bookmarks.  For even faster access, you can put
  129.             them on the "Links" bar (IE) or the "Personal Toolbar"
  130.             (Netscape), and run them with a single click.
  131.           </p>
  132.  
  133.           <ul>
  134.             <li><a href="javascript:void(window.open('@default-cgi@toggle?mini=y&set=enabled','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Enable</a></li>
  135.             <li><a href="javascript:void(window.open('@default-cgi@toggle?mini=y&set=disabled','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Disable</a></li>
  136.             <li><a href="javascript:void(window.open('@default-cgi@toggle?mini=y&set=toggle','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - Toggle Privoxy</a>
  137.                   (Toggles between enabled and disabled)</li>
  138.             <li><a href="javascript:void(window.open('@default-cgi@toggle?mini=y','ijbstatus','width=250,height=100,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy - View Status</a></li>
  139.           </ul>
  140.  
  141.           <p>
  142.             <b>Credit:</b> The site which gave us the general idea for these
  143.             bookmarklets is <a href="http://www.bookmarklets.com/">www.bookmarklets.com</a>.
  144.             They have <a href="http://www.bookmarklets.com/about/">more information</a> about them.
  145.           </p>
  146.       </td>
  147.     </tr>
  148.  
  149.     <tr>
  150.       <td class="box">
  151.         <h2>More Privoxy:</h2>
  152.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
  153.       </td>
  154.     </tr>
  155.  
  156.     <tr>
  157.       <td class="info">
  158.  
  159. #include mod-support-and-service
  160.  
  161.       </td>
  162.     </tr>
  163.  
  164. <!-- @if-have-help-info-start -->
  165.     <tr>
  166.       <td class="info">
  167.  
  168. #include mod-local-help
  169.  
  170.       </td>
  171.     </tr>
  172. <!-- if-have-help-info-end@ -->
  173.     
  174.  
  175.      <tr>
  176.       <td>
  177.         <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
  178.       </td>
  179.     </tr>   
  180.   </table>
  181.  
  182. </body>
  183. </html>
  184.  
  185.